<h1>New membership</h1>

<p>
  <b>Group:</b>
  <%=h @invitation.group.name %>
</p>

<p>
  <b>Email:</b>
  <%=h @invitation.email %>
</p>

<p>
  <b>Sent On:</b>
  <%=h @invitation.created_at %>
</p>

<p>
  <b>Invited By:</b>
  <%=h @invitation.creator.name %>
</p>

<%= error_messages_for :membership %>

<% form_for([@invitation.group,@membership]) do |f| %>

  <p>
    <%= f.submit "Accept" %> 
	 <%= link_to 'Decline', group_invitation_path(@invitation.group,@invitation), :confirm => 'Are you sure?', :method => :delete %>
  </p>
  
<% end %>



<%= debug session[:key] %>